//
//  TJHUD.h
//  BaoDian
//
//  Created by mac on 2024/8/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, TJHUDType) {
    TJHUDTypeNone,
    TJHUDTypeSucceed,
    TJHUDTypeError,
};

@class MBProgressHUD;


@interface TJHUD : NSObject

+ (void)showGraceTimeLoadingInView:(nullable UIView *)view;
+ (void)showLoadingInView:(nullable UIView *)view text:(nullable NSString *)text;
+ (void)showLoadingInView:(nullable UIView *)view;
+ (void)updateHudText:(NSString *)text;
+ (void)showLoading;

+ (void)hiddenLoadingInView:(nullable UIView *)view;
+ (void)hiddenLoading;

+ (void)showMessage:(nullable NSString *)message inView:(UIView *)view;
+ (void)showMessage:(nullable NSString *)message;

+ (void)showErrorMessage:(nullable NSString *)message inView:(UIView *)view;
+ (void)showErrorMessage:(nullable NSString *)message;

+ (void)showSucceedMessage:(nullable NSString *)message inView:(UIView *)view;
+ (void)showSucceedMessage:(nullable NSString *)message;

+ (void)showLogMessage:(nullable NSString *)message;
+ (void)hiddenMessage;

+ (void)showSucceedMessageTip;
+ (void)showErrorMessageTip;
+ (MBProgressHUD *)getShowMessageHud;

@end

NS_ASSUME_NONNULL_END
